﻿@{
    ViewBag.Title = "Voucher Restrictions";
    Layout = "/Views/Shared/_PopupLayout.cshtml";
}
<div  class="padding10">
     <div class="row-fluid">
                    <label for="textfield" class="span2"style="padding-top: 10px;">Voucher Code</label>
                    <h4 style="color: #0C31C4;">@ViewBag.VoucherCode</h4>
    </div>
    <div  class="row-fluid">
        <fieldset class="span3 nomargin "style="height: 400px;">
            <legend>Allowed Departments</legend>
            <div class="row-fluid " style="overflow: auto; max-height: 92%;">
                 <ul style="list-style-type: square;">
                           @foreach (var item in ViewBag.lstDepartments)
                           {
                               <li>@item.tblDepartment.DepartmentName</li>
                           }
                 </ul>
            </div>
        </fieldset>

        <fieldset class="span3 nomargin"style="height: 400px;">
            <legend>Allowed Products</legend>            
            <div class="row-fluid " style="overflow: auto; max-height: 92%;">
                 <ul style="list-style-type: square;">
                           @foreach (var item in ViewBag.lstProducts)
                           {
                               <li>@item.tblProduct.ProductName</li>
                           }
                 </ul>
            </div>
        </fieldset>
        <fieldset class="span3 nomargin"style="height: 400px;">
            <legend>Allowed Websites</legend>
            <div class="row-fluid " style="overflow: auto; max-height: 92%;">
                <ul style="list-style-type: square;">
                    @foreach (var item in ViewBag.lstWebsites)
                    {
                        <li>@item.tblStore.StoreName</li>
                    }
                </ul>
            </div>
        </fieldset>
        <fieldset class="span3 nomargin" style="height: 400px;">
            <legend>Allowed Companies</legend>
             <div class="row-fluid " style="overflow: auto; max-height: 92%;">
                 <ul style="list-style-type: square;">
                           @foreach (var item in ViewBag.lstCompanies)
                           {
                               <li>@item.Company.CompanyName</li>
                           }
                 </ul>
            </div>
        </fieldset>
    </div>
    <div class="row-fluid text-right" style="padding-top: 10px;" >
        <button type ="reset" class="btn" aria-hidden="true" onclick="window.close()">Close</button>
    </div>
</div>
 
